<script>
$(document).ready(function(){
	{params}
	
	var c={
		init:function(){
			var oi = params.oi;
			d = reim.useraarr[oi];
			this.info = d;
			if(!d.email)d.email='';
			if(!d.position)d.position='';
			if(!d.mobile)d.mobile='';
			if(!d.tel)d.tel='';
			if(!d.tel)d.tel='';
			if(!d.deptname)d.deptname='';
			if(d.gender=='1')d.gender='男';
			if(d.gender=='2')d.gender='女';
			var sj = d.mobile;
			if(sj)sj = sj.substr(0,3)+'****'+sj.substr(7)+' <a style="color:gray" onclick="js.alert(\''+d.mobile+'\')">查看</a>';
			var s = '<div align="center"><div align="left" style="width:300px;margin-top:20px">';
			s+='	<div style="padding-left:70px"><img id="editmyface_img" onclick="$(this).imgview()" src="'+d.face+'" height="100" width="100" style="border-radius:50%;border:1px #eeeeee solid"></div>';
			if(d.id==useraid)s+='<div style="padding-left:90px"><a click="editface" class="zhu" style="font-size:12px">修改头像</a></div>';

			s+='	<div style="line-height:30px;padding:10px;padding-left:20px;"><font color=#888888>姓名：</font>'+d.name+'<br><font color=#888888>部门：</font>'+d.deptname+'<br><font color=#888888>职位：</font>'+d.position+'<br><font color=#888888>性别：</font>'+d.gender+'<br><font color=#888888>电话：</font>'+d.tel+'<br><font color=#888888>手机：</font>'+sj+'<br><font color=#888888>邮箱：</font>'+d.email+'</div>';
			s+='	<div style="padding-top:10px;padding-left:50px"><input type="button" value="发消息" onclick="reim.openchat('+oi+');reim.changleft(0)" class="webbtn">&nbsp; &nbsp; <input onclick="reim.closetabs(\'userinfo'+oi+'\')" type="button" value="关闭" style="background:gray" class="webbtn"></div>';
			s+='</div></div>';
			
			$('#showrand_{rand}').html(s);
		},
		editface:function(){
			js.updateface('修改头像', 'editmyface', function(fas,da){
				adminface = fas;
				get('homeface').src=fas;
				js.setoption('lgface', fas);
				js.msgok('修改成功');
				reim.ajax('index,editface',{fid:da.id,uid:adminid});
			});
		}
	}
	c.init();
	js.initbtn(c);
	
});
</script>

<div id="showrand_{rand}" style="padding:50px">
	
	
</div>